<?php
/**
 * The main template file.
 */

get_header(); ?>		

		
<div id="mainContent" class="other" style="">
	<div id="content1Column" class="other" style=""> 
		<div class="content clearfix other style="">
			<div id="centerColumn" class="other" style=""> 
			
				<div  class="sub-category">	
					<?php if (have_posts()) : ?>

					<?php while (have_posts()) : the_post(); ?>
					<div class='product-category clearfix'>
						<h2><a href='<?php the_permalink() ?>' title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
						<small><strong>Posted on: </strong><?php the_time('l, F jS, Y') ?></small>
						
						<?php if ( has_post_thumbnail() ) { ?>
						<div class='product-category-left'>
							<?php the_post_thumbnail('medium'); ?>							
						</div>
						
						<div class='product-category-right'>
							<div class='product-category-teaser'><?php the_content() ?></div>
							<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
						</div>
						<?php }else{ ?>
							<div class='product-category-teaser'><?php the_content() ?></div>
							<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
						<?php } ?>
					</div>
					<?php endwhile; ?>					
					<?php else :
							echo("<h2 class='center'>No posts found.</h2>");
					endif; ?>
					
				</div>
				
				
			</div>
		</div>
	</div>  
</div>
		


<?php get_footer(); ?>
